import React, { Component } from 'react';
import { connect, dispatch } from 'react-redux' // 引入connect
class App extends Component {
    constructor(props, context) {
        super(props, context);
    }
    componentWillMount() {
        document.body.style.margin = "0px";
        //// 这是防止页面被拖拽
        // document.body.addEventListener('touchmove', (ev) => {
        //  ev.preventDefault();
        // });
    }
    render() {
        return (
            <div>
                <div style={{height:'45px',width:'100%'}}></div>
                <div>
                    {
                        this.props.children
                    }
                </div>

            </div>
           
        );
    }
}
// 利用connect将组件与Redux绑定起来
export default connect((AppMd) => ({ AppMd }))(App)
